package org.kust.bbs.admin.mapper;

import org.kust.bbs.pojo.entity.Role;
import org.kust.bbs.pojo.vo.RoleVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p> 角色表 Mapper 接口</p>
 */
@Repository
public interface RoleMapper {
    int selectExistRoleById(Long roleId);

    List<RoleVO> selectRoles();

    RoleVO selectRoleByName(String name);

    void insertRole(Role role);

    void updateRole(Role role);

    void deleteRol(Long id);
}
